package com.damai.pay;

import java.io.IOException;

import javax.servlet.http.HttpServletRequest;

import com.citywithincity.pay.PayException;

public interface PayHandler<BusinessOrder> {
	/**
	 * 预支付
	 * @param order
	 * @return
	 */
	Object prePay(BusinessOrder order,HttpServletRequest request) throws PayException,IOException;
	
	/**
	 * 退款
	 * @param order
	 */
	void refund(BusinessOrder order) throws PayException,IOException;
}
